/**
 * ScreenItemMapUtil.java
 * Product:BaseLayer
 * Version:1.0
 * Copyright 2009 by DNE
 * All Rights Reserved.
 */
package com.site.util;

import java.util.HashMap;

/**
 * 
 * @author chad 2009-1-15
 */
public class ScreenItemMapUtil extends HashMap<Object, Object> implements
		ScreenItemMap {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/** 语言种类 */
	private String _lang;

	/**
	 * @param _lang
	 */
	public ScreenItemMapUtil(String _lang) {
		this._lang = _lang;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.dne.framework.common.ScreenItemMap#getLanguage()
	 */
	public String getLanguage() {
		// TODO Auto-generated method stub
		return _lang;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.dne.framework.common.ScreenItemMap#getScreenItem(java.lang.String)
	 */
	public ScreenItem getScreenItem(String key) {
		// TODO Auto-generated method stub
		ScreenItem screenItem = (ScreenItem) get(key);
		return screenItem;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.dne.framework.common.ScreenItemMap#getScreenItemMsg(java.lang.String)
	 */
	public String getScreenItemMsg(String key) {
		// TODO Auto-generated method stub
		return getScreenItem(key) != null ? getScreenItem(key).getDspMessage()
				: "";
	}

}
